home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
keyb
/
newkey54.zip
/
README
< prev
Wrap
Text File
|
1990-10-27
|
17KB
|
428 lines
This contains:
- The latest information on changes to Newkey since version 5.0
- Information on how to upgrade version 4.0 macro files to version 5.0
macro files
- Hints on using Newkey functions
- The latest information on software and hardware compatibility
RECENT CHANGES
Version 5.4
- A new macro function, {prtscrn}, that will invoke the "print screen"
function has been added. Use the macro editor to insert this function.
Pressing the "print screen" key will NOT cause the {prtscrn} function to
be inserted in the macro.
- Several new macro functions have been added to make it possible to
test the screen:
{ifescr row,col}TEXT{endife}
- If the contents of the screen starting at row,
column equal "TEXT" then execute the macro function
immediately following. "TEXT" can be any characters that can
be displayed on the screen. For example:
{ifescr 0,75}READY{endife}<go123><nextmac>
Assume the above is in a macro designed to be used by
Lotus 1-2-3. When executed, Newkey would check row 0
column 75 of the screen for "READY" and if found, it
would execute the <go123> macro, otherwise it would skip
the <go123> macro.
{ifnescr row,col}TEXT{endifne}
- If the contents of the screen starting at row,
column do not equal "TEXT" then execute the macro function
immediately following. For example:
{ifnescr 0,75}READY{endifne}<go123><nextmac>
Assume the above is in a macro designed to be used by
Lotus 1-2-3. When executed, Newkey would check row 0
column 75 of the screen for "READY" and if not found, it
would execute the <go123> macro, otherwise it would skip
the <go123> macro.
{ifefscr row,col}TEXT{endifef}
- If "TEXT" is found anyplace on the screen execute the macro
function immediately following. For example:
{ifefscr}READY{endifef}<go123><nextmac>
Assume the above is in a macro designed to be used by Lotus
1-2-3. When executed, Newkey would the full screen for
"READY" and if found, it would execute the <go123> macro,
otherwise it would skip the <go123> macro.
{ifnefscr row,col}TEXT{endifne}
- If "TEXT" is not found anyplace on the screen execute the
macro function immediately following. For example:
{ifnefscr}READY{endifnef}<go123><nextmac>
Assume the above is in a macro designed to be used by
Lotus 1-2-3. When executed, Newkey would check the full
screen for "READY" and if not found, it would execute the
<go123> macro, otherwise it would skip the <go123> macro.
The if macro functions are probably the most difficult of Newkey's macro
functions to use. See EXAMPLE.KEY for some sample if macros that will work
at the DOS prompt and demonstrate some of the powerful things that can be
done..
{cancel} - cancel all currently executing macros
{return} - stop executing the current macro and return control to
the macro which called the current macro. If the
current macro was not called by another macro then
the macro will stop just as if it had terminated
normally.
The {cancel} and {return} functions have been added to make working
with the {ifescr} and {ifnescr} functions easier. The if functions
can be used to test the currently status of the program and delay
macro execution until the program is ready to accept further
keystrokes. This is more convenient then trying to time how long it
takes and then using the {wait} function (as long as the program
displays some sort of indicator on the screen when it is done). For
working examples see the macros beginning with "if" in EXAMPLE.KEY.
HINT: To help determine what row and column a piece of text starts
on, the "cUt" screen has been changed to display the row and column of
the current cursor position. Just pop up the Newkey menu (alt/),
select "U", move the cursor to the start of the text you want
to check for, note the row & column, and press ESC to cancel the cut.
Then use the macro editor to insert the if function.
See EXAMPLE.KEY for sample macros illustrating the new functions.
Version 5.3
- This version more fully uses EMS memory to save you an additional
15K of memory below the 640K line.
- Menu macros have been changed so that they restart themselves after
the menu option has been selected unless the menu option selected was
defined with a 'y' in the 'exit' column or the menu's exit key was
selected. Previously the menu macro would always end after a menu
option was selected.
Version 5.2
This version sports an updated user interface. The new interface
functionally is very similar to earlier versions of 5.0, but with a
more attractive face. The menu and display macro edit screens have
been slightly rearranged.
Version 5.1
Newkey will now use EMS memory to store its macro and screen
buffer. EMS memory will be automatically used. To prevent EMS
usage use the "/noems" parameter when loading Newkey. For example:
newkey /3000 /noems
will load Newkey with a 3000 character macro buffer and prevent
usage of EMS memory.
We have been receiving many requests for a very small version. We
have started development of NEWKEYVS for Newkey Very Small. This
version does not have the pop-up features and lacks many other
macro functions. Currently it requires only about 22k, 38k less
than the largest version. Newkeysm is still available, lacks the
pop-up features, and weighs in at about 35k, 25k less than the
largest version.
HINTS
HINTS ON EXECUTING MACROS FROM BATCH FILES
Macros may be executed from batch files using the "newkeysp /ek="
function as described in the Users Guide. The way this operates can be
confusing. Assume that you have a macro defined for <alta>. To execute
this macro in a batch file you would place the following statement:
"newkeysp /ek=[alta]"
in the batch file. This will cause the key code associated with the
alta key to be inserted in the keyboard buffer. Now, the next time the
keyboard buffer is read, alta will be found and the macro associated
with it executed, just as if you had pressed the alta key yourself.
The confusing part of this is that the macro will only execute when the
keyboard is read, but the keyboard is not read while DOS is processing a
batch file. What this means is that the macro will not execute until
either:
A. control is returned to the DOS command line or
B. a program is run in the batch file and the program reads the
keyboard.
If you wish to execute a macro to drive a program during a batch file
then you should insert the macro into the buffer and then start the
program. For example, to start WordPerfect and execute a macro when
Wordperfect starts up that will format your letter heading, record a
macro (lets call it WPSTART) within WordPerfect to create the letter
heading and place the following two statements in your batch file:
newkeysp /ek=[wpstart]
wp
Now when the batch file is run, the <wpstart> macro will be inserted
into the keyboard buffer and when WordPerfect starts it will read the
keyboard and the <wpstart> macro will execute.
HINTS ON USING MENU MACROS
If you wish to do more in a menu macro than allowed by the menu macro
editor, then define another macro to contain the menu macro and put
the extra macro functions before and after the invocation of the menu
macro as desired. For example:
{begdef alta}Extra stuff before<menumac>extra stuff after{enddef}
This will allow you to edit the menu macro, <menumac>,